<template>
    <div class="card-box">
      <el-row>
        <el-col :md="24">
          <el-form :inline="true" :model="formInline" class="demo-form-inline">
            <el-form-item label="" class="mt_5">
              <el-input v-model="formInline.user" placeholder="请输入ICCID/姓名/手机号码/证件号码"></el-input>
            </el-form-item>
            <el-button type="primary" @click="selectCarrierName">
              <i class="el-icon-search"></i>
            </el-button>
            <el-button type="primary" @click="getCarrierData">
              <i class="el-icon-refresh"></i>
            </el-button>
          </el-form>
        </el-col>
        </el-row>
        <el-table :data="tableData" stripe border style="width: 100%">
            <el-table-column type="selection" label="id" width="40" prop="id">
            </el-table-column>
            <el-table-column prop="iccid" label="ICCID" width="200">
            </el-table-column>
            <el-table-column prop="time" label="提交时间" width="200">
            </el-table-column>
            <el-table-column prop="username" label="用户姓名" width="100">
            </el-table-column>
            <el-table-column prop="id" label="证件号码" width="180">
            </el-table-column>
            <el-table-column prop="phone" label="联系方式" width="120">
            </el-table-column>
            <el-table-column prop="status" label="认证状态" width="120">
            </el-table-column>
            <el-table-column label="操作">
                <template slot-scope="scope">
                    <span class="link" @click="getDetail(scope.row)">详情</span>
                </template>
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                formInline: {
                    user: ''
                },
                tableData: [
                    {
                        id: 1,
                       iccid: '898607B9101700114004' ,
                       time: '2018-06-14 17:35:50',
                       username: '1',
                       id: '130532199505261546',
                       phone: '15512711565',
                       status: '待审核'
                    }
                ]
            }
        },
        methods: {
            getDetail(goods) {
                this.$router.push({
                    path: `/authentication_records/${goods.id}`
                })
            }
        }
    }
</script>

<style scoped>

</style>